package com.aisile.crowd_funding.system.service.impl;

import com.aisile.crowd_funding.system.mapper.SysLogMapper;
import com.aisile.crowd_funding.system.pojo.SysLog;
import com.aisile.crowd_funding.system.pojo.SysLogExample;
import com.aisile.crowd_funding.system.service.LogService;
import org.aspectj.lang.annotation.Around;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @标题 LogServiceImpl
 * @作者 Mr.chen
 * @创建日期 2018/12/13 11:36
 * @版本号 1.0
 **/
@Service
@Transactional
public class LogServiceImpl implements LogService{
    @Autowired
    SysLogMapper sysLogMapper;


    @Override
    public int deleteByPrimaryKey(Long id) {
        return sysLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SysLog record) {
        return sysLogMapper.insert(record);
    }

    @Override
    public SysLog selectByPrimaryKey(Long id) {
        return sysLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(SysLog sysLog) {
        return sysLogMapper.updateByPrimaryKey(sysLog);
    }

    @Override
    public List<SysLog> selectByExample(SysLogExample sysLogExample) {
        return sysLogMapper.selectByExample(sysLogExample);
    }
}
